package com.bestcem.xm.om.util;

import com.bestcem.xm.common.core.uitls.DateUtil;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2022/1/12 14:51
 */
public class EmailTemplateUtil {
    private EmailTemplateUtil() {
    }

    /**
     * 转派时候的操作者
     */
    private static final String NAME = "name";
    /**
     * 转派时候的备注
     */
    private static final String REMARK = "remark";
    /**
     * 用户名
     */
    private static final String PARAM_USERNAME = "username";

    /**
     * 申请理由
     */
    private static final String PARAM_REASON = "reason";

    /**
     * 公司代号
     */
    private static final String PARAM_ORG_CODE = "code";

    /**
     * 联系方式
     */
    private static final String PARAM_CONTACT = "contact";

    /**
     * 手机号
     */
    private static final String PARAM_PHONE = "phone";

    /**
     * OM用户姓名
     */
    private static final String PARAM_OM_USER_NAME = "omUserName";

    /**
     * 授权链接
     */
    private static final String PARAM_EMPOWER_URL = "empowerUrl";

    /**
     * 系统商后台跳转链接
     */
    private static final String PARAM_OM_URL = "omUrl";

    /**
     * 密码
     */
    private static final String PARAM_PASSWORD = "pwd";

    /**
     * 日期 例：2022年01月25日
     */
    private static final String PARAM_TODAY = "today";

    /**
     * OM登录页面
     */
    private static final String PARAM_HOMEPAGE_URL = "homepage_url";

    /**
     * 公司名称
     */
    private static final String PARAM_COMPANY_NAME = "company_name";

    /**
     * 公司企业类型
     */
    private static final String PARAM_COMPANY_TYPE = "company_type";

    /**
     * 邮箱
     */
    private static final String PARAM_EMAIL = "email";

    /**
     * 文本
     */
    private static final String PARAM_CONTENT = "content";

    /**
     * 手机归属地
     */
    private static final String PARAM_PHONE_LOCATION = "loc";

    /**
     * 来源
     */
    private static final String PARAM_SOURCE = "source";

    /**
     * 链接前缀
     */
    private static final String BESTCEM_URL = "bestcem_url";

    /**
     * 时间
     */
    private static final String PARAM_TIME = "time";

    /**
     * 时间
     */
    private static final String OSS_PREFIX = "ossPrefix";

    //====== 传送门相关 ======
    /**
     * 首次 超管
     */
    private static final String DELIVERY_APPLY_TO_ADMIN_FIRST = "<meta charset=\"utf-8\" /><table width=\"100%\"><tr><td style=\"width: 100%\"><center><table class=\"content-wrap\" style=\" margin: 0px auto; width: 600px; border: 1px solid #eee; background: #fff; \" ><tr><td style=\" margin: 0px auto; overflow: hidden; padding: 0px; border: 0px dotted rgb(238, 238, 238); \" ><!----><div tindex=\"1\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url('${ossPrefix}om/ds/1b3b20f6ad3e42a496a9ec9780aff850/202201121440233954969.png'); background-repeat: no-repeat; background-size: cover; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><a href=\"${bestcem_url}\" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 64px; width: 600px; background-image: url('${ossPrefix}om/ds/a33d2c417e41459888d00ddbec7de2d3/202201121440161455452.png'); background-size: 100px; background-position: 5% 50%; background-repeat: no-repeat; \" ></td></tr></table></a></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.5; color: rgb( 255, 255, 255 ); font-size: 28px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.5; font-size: 28px; margin: 0px; \" > 超级管理员,您好！ </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 255, 255, 255 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > ${username}申请倍市得工作人员登录协助,申请理由： </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 90px; width: 600px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div tindex=\"2\" style=\" margin: -70px auto 0; max-width: 500px; box-shadow: 0px 4px 24px 0px rgba(48, 49, 51, 0.04); border-radius: 4px; border: 1px solid #eee; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 500px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 18px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 18px; margin: 0px; \" ><strong >“${reason}”</strong ></p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 公司代号: &nbsp;&nbsp;${code} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 登录子账号: &nbsp;&nbsp;${contact} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 倍市得支持人员: &nbsp;&nbsp;${omUserName} </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 500px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 50%; max-width: 50%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div class=\"full\" style=\"margin: 0px auto; max-width: 600px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 250px\" ><tbody><tr><td align=\"center\" vertical-align=\"middle\" style=\" font-size: 0px; word-break: break-word; width: 250px; padding: 20px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ><a href=\"${empowerUrl}?empower=false&isAdmin=true\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" border-collapse: separate; line-height: 1; \" ><tr><td align=\"center\" bgcolor=\"rgb(255 255 255)\" valign=\"middle\" style=\" line-height: 1; background-color: rgb( 255, 255, 255 ); padding: 15px 66px; border-radius: 4px; border-width: 1px; border-color: rgb( 225, 228, 235 ); border-style: solid; cursor: auto; \" ><p style=\" font-family: 微软雅黑, 'Microsoft YaHei'; margin: 0px; color: rgb(96, 98, 102); line-height: 1; font-size: 12px; font-weight: normal; text-decoration: none; text-transform: none; \" ><span>拒绝授权</span></p></td></tr></table></a ></td></tr></tbody></table></div></td><td class=\"oneColumn column2\" style=\" width: 50%; max-width: 50%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div class=\"full\" style=\"margin: 0px auto; max-width: 600px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 250px\" ><tbody><tr><td align=\"center\" vertical-align=\"middle\" style=\" font-size: 0px; word-break: break-word; width: 250px; padding: 20px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ><a href=\"${empowerUrl}?empower=true&isAdmin=true\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" border-collapse: separate; line-height: 1; \" ><tr><td align=\"center\" bgcolor=\"rgb(81, 142, 255)\" valign=\"middle\" style=\" line-height: 1; background-color: rgb( 81, 142, 255 ); padding: 15px 66px; border-radius: 4px; border-width: 1px; border-color: rgb( 225, 228, 235 ); border-style: solid; cursor: auto; \" ><p style=\" font-family: 微软雅黑, 'Microsoft YaHei'; margin: 0px; color: rgb(255, 255, 255); line-height: 1; font-size: 12px; font-weight: normal; text-decoration: none; text-transform: none; \" ><span>同意授权</span></p></td></tr></table></a ></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div tindex=\"3\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 请您悉知，如您同意本次授权，<strong>${omUserName}</strong>有权于本次授权后的<strong>12小时</strong>内登录上述倍市得账号，超时无法登录。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 请您悉知，如您的子账号需要后续支持，并且需要倍市得工作人员登录协助时，倍市得仅需获得子账号的授权，即可于12小时内登录子账号排查相关问题，无需另行获得您的授权。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 如您拒绝授权，<strong>${omUserName}</strong>将无法登录您的倍市得账号为您排查解决相关问题。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 如有疑问，请至官网联系在线客服。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></table></center></td></tr></table>";

    /**
     * 首次 子账户
     */
    private static final String DELIVERY_APPLY_TO_COMMON_USER_FIRST = "<meta charset=\"utf-8\" /><table width=\"100%\"><tr><td style=\"width: 100%\"><center><table class=\"content-wrap\" style=\" margin: 0px auto; width: 600px; border: 1px solid #eee; background: #fff; \" ><tr><td style=\" margin: 0px auto; overflow: hidden; padding: 0px; border: 0px dotted rgb(238, 238, 238); \" ><!----><div tindex=\"1\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url('${ossPrefix}om/ds/1b3b20f6ad3e42a496a9ec9780aff850/202201121440233954969.png'); background-repeat: no-repeat; background-size: cover; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><a href=\"${bestcem_url}\" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 64px; width: 600px; background-image: url('${ossPrefix}om/ds/a33d2c417e41459888d00ddbec7de2d3/202201121440161455452.png'); background-size: 100px; background-position: 5% 50%; background-repeat: no-repeat; \" ></td></tr></table></a></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.5; color: rgb( 255, 255, 255 ); font-size: 28px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.5; font-size: 28px; margin: 0px; \" > ${username},您好！ </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 255, 255, 255 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 您申请倍市得工作人员登录协助,申请理由： </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 90px; width: 600px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div tindex=\"2\" style=\" margin: -70px auto 0; max-width: 500px; box-shadow: 0px 4px 24px 0px rgba(48, 49, 51, 0.04); border-radius: 4px; border: 1px solid #eee; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 500px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 18px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 18px; margin: 0px; \" ><strong >“${reason}”</strong ></p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 公司代号: &nbsp;&nbsp;${code} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 登录子账号: &nbsp;&nbsp;${contact} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 倍市得支持人员: &nbsp;&nbsp;${omUserName} </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\"font-size: 0px; word-break: break-word\" ><div class=\"full\" style=\" margin: 0px auto; line-height: 0px; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td align=\"center\" class=\"fullTd\" style=\" direction: ltr; font-size: 0px; padding: 20px; text-align: center; vertical-align: top; word-break: break-word; width: 500px; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" border-collapse: collapse; border-spacing: 0px; \" ><tbody><tr><td style=\" width: 500px; border-top: 1px solid rgb(204, 204, 204); \" ></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\"font-size: 0px; word-break: break-word\" ><div class=\"full\" style=\"margin: 0px auto; max-width: 500px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"vertical-align: top\" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb(102, 102, 102); font-size: 13px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 13px; margin: 0px; \" > 请联系你的超级管理员[${phone}]，根据邮件提示进行授权。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></div><div tindex=\"3\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 请您悉知，如您同意本次授权，<strong>${omUserName}</strong>有权于本次授权后的<strong>12小时</strong>内登录上述倍市得账号，超时无法登录。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 如您拒绝授权，<strong>${omUserName}</strong>将无法登录您的倍市得账号为您排查解决相关问题。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 如有疑问，请至官网联系在线客服。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></table></center></td></tr></table>";

    /**
     * 非首次
     */
    private static final String DELIVERY_APPLY_TO_USER = "<meta charset=\"utf-8\" /><table width=\"100%\"><tr><td style=\"width: 100%\"><center><table class=\"content-wrap\" style=\"margin: 0px auto; width: 600px;border:1px solid #eee; background:#fff\"><tr><td style=\" margin: 0px auto; overflow: hidden; padding: 0px; border: 0px dotted rgb(238, 238, 238); \" ><!----><div tindex=\"1\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url('${ossPrefix}om/ds/1b3b20f6ad3e42a496a9ec9780aff850/202201121440233954969.png'); background-repeat: no-repeat; background-size: cover; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><a href=\"${bestcem_url}\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 64px; width: 600px; background-image: url('${ossPrefix}om/ds/a33d2c417e41459888d00ddbec7de2d3/202201121440161455452.png'); background-size: 100px; background-position: 5% 50%; background-repeat: no-repeat; \" ></td></tr></table></a></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.5; color: rgb( 255, 255, 255 ); font-size: 28px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.5; font-size: 28px; margin: 0px; \" > ${username},您好！ </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 255, 255, 255 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 您申请倍市得工作人员登录协助,申请理由： </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 90px; width: 600px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div tindex=\"2\" style=\"margin: -70px auto 0; max-width: 500px;box-shadow: 0px 4px 24px 0px rgba(48,49,51,0.04); border-radius:4px;border:1px solid #eee; \"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 500px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 18px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 18px; margin: 0px; \" ><strong >“${reason}”</strong ></p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 公司代号: &nbsp;&nbsp;${code} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 登录子账号: &nbsp;&nbsp;${contact} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 倍市得支持人员: &nbsp;&nbsp;${omUserName} </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 500px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 50%; max-width: 50%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div class=\"full\" style=\"margin: 0px auto; max-width: 600px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 250px\" ><tbody><tr><td align=\"center\" vertical-align=\"middle\" style=\" font-size: 0px; word-break: break-word; width: 250px; padding: 20px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ><a href=\"${empowerUrl}?empower=false&isAdmin=false\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" border-collapse: separate; line-height: 1; \" ><tr><td align=\"center\" bgcolor=\"rgb(255 255 255)\" valign=\"middle\" style=\" line-height: 1; background-color: rgb( 255, 255, 255 ); padding: 15px 66px; border-radius: 4px; border-width: 1px; border-color: rgb( 225, 228, 235 ); border-style: solid; cursor: auto; \" ><p style=\" font-family: 微软雅黑, 'Microsoft YaHei'; margin: 0px; color: rgb(96, 98, 102); line-height: 1; font-size: 12px; font-weight: normal; text-decoration: none; text-transform: none; \" ><span>拒绝授权</span></p></td></tr></table></a></td></tr></tbody></table></div></td><td class=\"oneColumn column2\" style=\" width: 50%; max-width: 50%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div class=\"full\" style=\"margin: 0px auto; max-width: 600px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 250px\" ><tbody><tr><td align=\"center\" vertical-align=\"middle\" style=\" font-size: 0px; word-break: break-word; width: 250px; padding: 20px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ><a href=\"${empowerUrl}?empower=true&isAdmin=false\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" border-collapse: separate; line-height: 1; \" ><tr><td align=\"center\" bgcolor=\"rgb(81, 142, 255)\" valign=\"middle\" style=\" line-height: 1; background-color: rgb( 81, 142, 255 ); padding: 15px 66px; border-radius: 4px; border-width: 1px; border-color: rgb( 225, 228, 235 ); border-style: solid; cursor: auto; \" ><p style=\" font-family: 微软雅黑, 'Microsoft YaHei'; margin: 0px; color: rgb(255, 255, 255); line-height: 1; font-size: 12px; font-weight: normal; text-decoration: none; text-transform: none; \" ><span>同意授权</span></p></td></tr></table></a></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div tindex=\"3\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 请您悉知，如您同意本次授权，<strong>${omUserName}</strong>有权于本次授权后的<strong>12小时</strong>内登录上述倍市得账号，超时无法登录。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 如您拒绝授权，<strong>${omUserName}</strong>将无法登录您的倍市得账号为您排查解决相关问题。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > 如有疑问，请至官网联系在线客服。 </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></table></center></td></tr></table>";

    /**
     * 授权通过回执
     */
    private static final String DELIVERY_RECEIPT_PASS = "<meta charset=\"utf-8\" /><table width=\"100%\"><tr><td style=\"width: 100%\"><center><table class=\"content-wrap\" style=\" margin: 0px auto; width: 600px; border: 1px solid #eee; background: #fff; \" ><tr><td style=\" margin: 0px auto; overflow: hidden; padding: 0px; border: 0px dotted rgb(238, 238, 238); \" ><!----><div tindex=\"1\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url('${ossPrefix}om/ds/1b3b20f6ad3e42a496a9ec9780aff850/202201121440233954969.png'); background-repeat: no-repeat; background-size: cover; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><a href=\"${bestcem_url}\" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 64px; width: 600px; background-image: url('${ossPrefix}om/ds/a33d2c417e41459888d00ddbec7de2d3/202201121440161455452.png'); background-size: 100px; background-position: 5% 50%; background-repeat: no-repeat; \" ></td></tr></table ></a></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.5; color: rgb( 255, 255, 255 ); font-size: 28px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.5; font-size: 28px; margin: 0px; \" > ${omUserName},您好！ </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 255, 255, 255 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > ${username}已<span style=\" color: #5ec976; \" >授权</span >您登录协助,申请理由： </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 90px; width: 600px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div tindex=\"2\" style=\" margin: -70px auto 0; max-width: 500px; box-shadow: 0px 4px 24px 0px rgba(48, 49, 51, 0.04); border-radius: 4px; border: 1px solid #eee; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 500px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 18px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 18px; margin: 0px; \" ><strong >\"${reason}\"</strong ></p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 公司代号: &nbsp;&nbsp;${code} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 登录子账号: &nbsp;&nbsp;${contact} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 倍市得支持人员: &nbsp;&nbsp;${omUserName} </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\"font-size: 0px; word-break: break-word\" ><div class=\"full\" style=\" margin: 0px auto; line-height: 0px; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td align=\"center\" class=\"fullTd\" style=\" direction: ltr; font-size: 0px; padding: 20px; text-align: center; vertical-align: top; word-break: break-word; width: 500px; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" border-collapse: collapse; border-spacing: 0px; \" ><tbody><tr><td style=\" width: 500px; border-top: 1px solid #e1e4eb; \" ></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\"font-size: 0px; word-break: break-word\" ><div class=\"full\" style=\"margin: 0px auto; max-width: 500px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"vertical-align: top\" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb(102, 102, 102); font-size: 13px; font-weight: normal; \" ><div class=\"full\" tindex=\"8\" style=\" margin: 0px auto; max-width: 450px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 450px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 450px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; \" ><div style=\" display: inline-block; vertical-align: top; width: 100%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td style=\" font-size: 0px; word-break: break-word; width: 450px; text-align: center; padding: 10px 0px; \" ><div><img height=\"auto\" width=\"450\" src=\"${ossPrefix}om/ds/6332cf9e9f9f40f2ac4dccc0060823c8/202201201412137992169.png\" style=\" box-sizing: border-box; border: 0px; display: inline-block; outline: none; text-decoration: none; height: auto; max-width: 100%; padding: 0px; \" /></div></td></tr></table></div></td></tr></tbody></table></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></div><div tindex=\"3\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div class=\"full\" tindex=\"4\" style=\"margin: 0px auto; max-width: 600px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td align=\"center\" vertical-align=\"middle\" style=\" font-size: 0px; word-break: break-word; width: 600px; padding: 20px; \" ><a href=\"${omUrl}\" style=\"text-decoration: none\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: separate; line-height: 1\" ><tr><td align=\"center\" bgcolor=\"rgb(81, 142, 255)\" valign=\"middle\" style=\" line-height: 1; background-color: rgb(81, 142, 255); padding: 17px 88px; border-radius: 4px; border-width: 1px; border-color: rgb(225, 228, 235); border-style: solid; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; cursor: auto; \" ><p style=\" font-family: 微软雅黑, 'Microsoft YaHei'; margin: 0px; color: rgb(255, 255, 255); line-height: 1; font-size: 12px; font-weight: normal; text-decoration: none; text-transform: none; \" ><span>登录后台</span></p></td></tr></table></a></td></tr></tbody></table></div></td></tr></table></center></td></tr></table>";

    /**
     * 授权拒绝回执
     */
    private static final String DELIVERY_RECEIPT_REJECT = "<meta charset=\"utf-8\" /><table width=\"100%\"><tr><td style=\"width: 100%\"><center><table class=\"content-wrap\" style=\" margin: 0px auto; width: 600px; border: 1px solid #eee; background: #fff; \" ><tr><td style=\" margin: 0px auto; overflow: hidden; padding: 0px; border: 0px dotted rgb(238, 238, 238); \" ><!----><div tindex=\"1\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url('${ossPrefix}om/ds/1b3b20f6ad3e42a496a9ec9780aff850/202201121440233954969.png'); background-repeat: no-repeat; background-size: cover; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><a href=\"${bestcem_url}\" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 64px; width: 600px; background-image: url('${ossPrefix}om/ds/a33d2c417e41459888d00ddbec7de2d3/202201121440161455452.png'); background-size: 100px; background-position: 5% 50%; background-repeat: no-repeat; \" ></td></tr></table ></a></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.5; color: rgb( 255, 255, 255 ); font-size: 28px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.5; font-size: 28px; margin: 0px; \" > ${omUserName},您好！ </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 255, 255, 255 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 14px; margin: 0px; \" > ${username}已<span style=\" color: red; \" >拒绝</span >您登录协助,申请理由： </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; padding-top: 0px; text-align: center; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"center\" vertical-align=\"middle\" style=\" line-height: 0; padding-top: 90px; width: 600px; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; \" ></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div tindex=\"2\" style=\" margin: -70px auto 0; max-width: 500px; box-shadow: 0px 4px 24px 0px rgba(48, 49, 51, 0.04); border-radius: 4px; border: 1px solid #eee; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 500px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 18px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 1.6; font-size: 18px; margin: 0px; \" ><strong >\"${reason}\"</strong ></p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 公司代号: &nbsp;&nbsp;${code} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 登录子账号: &nbsp;&nbsp;${contact} </p><p style=\" text-size-adjust: none; word-break: break-word; line-height: 2; font-size: 14px; margin: 0px; \" > 倍市得支持人员: &nbsp;&nbsp;${omUserName} </p></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\"font-size: 0px; word-break: break-word\" ><div class=\"full\" style=\" margin: 0px auto; line-height: 0px; max-width: 500px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td align=\"center\" class=\"fullTd\" style=\" direction: ltr; font-size: 0px; padding: 20px; text-align: center; vertical-align: top; word-break: break-word; width: 500px; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" border-collapse: collapse; border-spacing: 0px; \" ><tbody><tr><td style=\" width: 500px; border-top: 1px solid #e1e4eb; \" ></td></tr></tbody></table></td></tr></tbody></table></div></td></tr></table></div><div class=\"mj-column-per-50\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\"font-size: 0px; word-break: break-word\" ><div class=\"full\" style=\"margin: 0px auto; max-width: 500px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 500px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 500px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"vertical-align: top\" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb(102, 102, 102); font-size: 13px; font-weight: normal; \" ><div class=\"full\" tindex=\"9\" style=\" margin: 0px auto; max-width: 450px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 450px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 450px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; \" ><div style=\" display: inline-block; vertical-align: top; width: 100%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td style=\" font-size: 0px; word-break: break-word; width: 450px; text-align: center; padding: 10px 0px; \" ><div><img height=\"auto\" width=\"450\" src=\"${ossPrefix}om/ds/a2a4252279a94d56a9fef287e8691a1a/202201201412334548324.png\" style=\" box-sizing: border-box; border: 0px; display: inline-block; outline: none; text-decoration: none; height: auto; max-width: 100%; padding: 0px; \" /></div></td></tr></table></div></td></tr></tbody></table></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></div><div tindex=\"3\" style=\"margin: 0px auto; max-width: 600px\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\" background-color: rgb(255, 255, 255); background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 1% 50%; \" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; width: 600px; \" ><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"vertical-align: top\" ><tbody><tr><td class=\"oneColumn column1\" style=\" width: 100%; max-width: 100%; min-height: 1px; font-size: 13px; text-align: left; direction: ltr; vertical-align: top; padding: 0px; \" ><div columnnumber=\"1\"><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%\" ><tbody><tr><td style=\" direction: ltr; font-size: 0px; text-align: center; vertical-align: top; border: 0px; \" ><div class=\"mj-column-per-25\" style=\" width: 100%; max-width: 100%; font-size: 13px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" border-collapse: collapse; border-spacing: 0px; width: 100%; vertical-align: top; \" ><tr><td align=\"center\" border=\"0\" style=\" font-size: 0px; word-break: break-word; \" ><div class=\"full\" style=\" margin: 0px auto; max-width: 600px; \" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td class=\"fullTd\" style=\" direction: ltr; width: 600px; font-size: 0px; padding-bottom: 0px; text-align: center; vertical-align: top; background-image: url(''); background-repeat: no-repeat; background-size: 100px; background-position: 10% 50%; \" ><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\" vertical-align: top; \" ><tr><td align=\"left\" style=\" font-size: 0px; padding: 20px; \" ><div class=\"text\" style=\" font-family: 微软雅黑, 'Microsoft YaHei'; overflow-wrap: break-word; margin: 0px; text-align: left; line-height: 1.6; color: rgb( 102, 102, 102 ); font-size: 14px; font-weight: normal; \" ><div></div></div></td></tr></table></td></tr></tbody></table></div></td></tr></table></div></td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div><div class=\"full\" tindex=\"4\" style=\"margin: 0px auto; max-width: 600px\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"fullTable\" style=\"width: 600px\" ><tbody><tr><td align=\"center\" vertical-align=\"middle\" style=\" font-size: 0px; word-break: break-word; width: 600px; padding: 20px; \" ><a href=\"${omUrl}\" style=\"text-decoration: none\" ><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: separate; line-height: 1\" ><tr><td align=\"center\" bgcolor=\"rgb(81, 142, 255)\" valign=\"middle\" style=\" line-height: 1; background-color: rgb(81, 142, 255); padding: 17px 88px; border-radius: 4px; border-width: 1px; border-color: rgb(225, 228, 235); border-style: solid; background-image: url(''); background-size: 100px; background-position: 10% 50%; background-repeat: no-repeat; cursor: auto; \" ><p style=\" font-family: 微软雅黑, 'Microsoft YaHei'; margin: 0px; color: rgb(255, 255, 255); line-height: 1; font-size: 12px; font-weight: normal; text-decoration: none; text-transform: none; \" ><span>登录后台</span></p></td></tr></table></a></td></tr></tbody></table></div></td></tr></table></center></td></tr></table>";

    /**
     * 超管首次授权
     *
     * @param username   授权账号名
     * @param reason     申请原因
     * @param orgCode    机构号
     * @param contact    登录子账户
     * @param omUserName 传送人
     * @param empowerUrl 授权url
     * @param ossPrefix
     * @return java.lang.String
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/1/14 17:20
     */
    public static String applyToAdminFirst(String username, String reason, String orgCode, String contact,
                                           String omUserName, String empowerUrl, String ossPrefix, String url) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_REASON, reason);
        paramMap.put(PARAM_ORG_CODE, orgCode);
        paramMap.put(PARAM_CONTACT, contact);
        paramMap.put(PARAM_OM_USER_NAME, omUserName);
        paramMap.put(PARAM_EMPOWER_URL, empowerUrl);
        paramMap.put(OSS_PREFIX, ossPrefix);
        paramMap.put(BESTCEM_URL, url);
        return TextParseUtil.parseEl(DELIVERY_APPLY_TO_ADMIN_FIRST, paramMap);
    }

    /**
     * 非超管首次授权
     *
     * @param username   授权账号名
     * @param reason     申请原因
     * @param orgCode    机构号
     * @param contact    登录子账户
     * @param omUserName 传送人
     * @param adminPhone 超管手机号
     * @param ossPrefix
     * @return java.lang.String
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/1/14 17:21
     */
    public static String applyToCommonUserFirst(String username, String reason, String orgCode, String contact,
                                                String omUserName, String adminPhone, String ossPrefix, String url) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_REASON, reason);
        paramMap.put(PARAM_ORG_CODE, orgCode);
        paramMap.put(PARAM_CONTACT, contact);
        paramMap.put(PARAM_OM_USER_NAME, omUserName);
        paramMap.put(PARAM_PHONE, adminPhone);
        paramMap.put(OSS_PREFIX, ossPrefix);
        paramMap.put(BESTCEM_URL, url);
        return TextParseUtil.parseEl(DELIVERY_APPLY_TO_COMMON_USER_FIRST, paramMap);
    }

    /**
     * 非首次
     *
     * @param username   授权账号名
     * @param reason     申请原因
     * @param orgCode    机构号
     * @param contact    登录子账户
     * @param omUserName 传送人
     * @param empowerUrl 授权url
     * @return java.lang.String
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/1/14 17:22
     */
    public static String applyToUser(String username, String reason, String orgCode, String contact, String omUserName,
                                     String empowerUrl, String ossPrefix, String url) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_REASON, reason);
        paramMap.put(PARAM_ORG_CODE, orgCode);
        paramMap.put(PARAM_CONTACT, contact);
        paramMap.put(PARAM_OM_USER_NAME, omUserName);
        paramMap.put(PARAM_EMPOWER_URL, empowerUrl);
        paramMap.put(OSS_PREFIX, ossPrefix);
        paramMap.put(BESTCEM_URL, url);
        return TextParseUtil.parseEl(DELIVERY_APPLY_TO_USER, paramMap);
    }

    /**
     * 通过回执
     *
     * @param username   授权账号名
     * @param reason     申请原因
     * @param orgCode    机构号
     * @param contact    登录子账户
     * @param omUserName 传送人
     * @return java.lang.String
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/1/14 17:17
     */
    public static String receiptPass(String username, String reason, String orgCode, String contact,
                                     String omUserName, String omUrl, String ossPrefix, String url) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_REASON, reason);
        paramMap.put(PARAM_ORG_CODE, orgCode);
        paramMap.put(PARAM_CONTACT, contact);
        paramMap.put(PARAM_OM_USER_NAME, omUserName);
        paramMap.put(PARAM_OM_URL, omUrl);
        paramMap.put(OSS_PREFIX, ossPrefix);
        paramMap.put(BESTCEM_URL, url);
        return TextParseUtil.parseEl(DELIVERY_RECEIPT_PASS, paramMap);
    }

    /**
     * 拒绝回执
     *
     * @param username   授权账号名
     * @param reason     申请原因
     * @param orgCode    机构号
     * @param contact    登录子账户
     * @param omUserName 传送人
     * @return java.lang.String
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/1/14 17:19
     */
    public static String receiptReject(String username, String reason, String orgCode, String contact,
                                       String omUserName, String omUrl, String ossPrefix, String url) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_REASON, reason);
        paramMap.put(PARAM_ORG_CODE, orgCode);
        paramMap.put(PARAM_CONTACT, contact);
        paramMap.put(PARAM_OM_USER_NAME, omUserName);
        paramMap.put(PARAM_OM_URL, omUrl);
        paramMap.put(OSS_PREFIX, ossPrefix);
        paramMap.put(BESTCEM_URL, url);
        return TextParseUtil.parseEl(DELIVERY_RECEIPT_REJECT, paramMap);
    }

    //====== OM账号角色相关 ======
    /**
     * OM账号角色公用html
     */
    private static final String USER_EMAIL_HTML = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/><meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"><title>问卷网</title><style> body { font-size: 14px; color: #616161; background: #FBFDFF; font-family: PingFangSC-Regular,Helvetica Neue,PingFang SC,Hiragino Sans GB,HeitiSC,Helvetica,Arial,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif; } td { padding: 4px 0 4px; } .blue { color: #2672FF; } .title { color: #484848; font-size: 20px; font-weight: 600; } .topic { padding: 20px 0 5px; } .topic1 { padding: 15px 0 15px; } .cy { text-align:right; line-height:1.8; } .bt { background:#FCFCFC; text-align:center; } </style></head><body style=\"margin: 0; padding: 0;\">%s</body></html>";

    /**
     * OM重置密码、创建用户邮件模板富文本内容
     */
    private static final String OM_NOTIFY_CREATE_USER_EMAIL = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%%\"><tr><td><table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" style=\"border-collapse: collapse;\"><tr><td class=\"topic title\">您好！</td></tr><tr><td class=\"topic\">您已获得系统商后台使用权限，请登录以下网址使用：</td></tr><tr><td>1、请登录网址：<a class=\"blue\" href=\"${homepage_url}\" target=\"_blank\">${homepage_url}</a></td></tr><tr><td>2、请输入账号名：${username} 密码：${pwd}</td></tr><tr><td>您也可使用手机号、邮箱登录，密码一致。如有权限问题，请联系超级管理员。</td></tr><tr><td class=\"topic1 cy\">倍市得<br>${today}</td></tr><tr><td class=\"topic1 bt\"><img height=\"45\" src=\"${ossPrefix}om/ds/851c1666857b4bd794d0d665917acc76/202201071148493419876.png\" alt=\"倍市得\"/></td></tr></table></td></tr></table>";

    private static final String DATE_FORMAT_USER = "yyyy年MM月dd日";

    public static String notifyCreateUser(String username, String password, String homepageUrl, String ossPrefix) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_PASSWORD, password);
        paramMap.put(PARAM_TODAY, DateUtil.convertDteToString(new Date(), DATE_FORMAT_USER));
        paramMap.put(PARAM_HOMEPAGE_URL, homepageUrl);
        paramMap.put(OSS_PREFIX, ossPrefix);
        String content = String.format(USER_EMAIL_HTML, OM_NOTIFY_CREATE_USER_EMAIL);
        return TextParseUtil.parseEl(content, paramMap);
    }

    //====== OM预约申请相关 ======
    /**
     * OM创建预约邮件模板富文本内容
     */
    private static final String OM_NOTIFY_APPLICATION_EMAIL = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>姓名:</td><td>${username}</td></tr><tr><td>公司名称:</td><td>${company_name}</td></tr><tr><td>公司行业:</td><td>${company_type}</td></tr><tr><td>邮箱:</td><td>${email}</td></tr><tr><td>电话:</td><td>${phone}</td></tr><tr><td>归属地:</td><td>${loc}</td></tr><tr><td>来源:</td><td>${source}</td></tr><tr><td>内容:</td><td>${content}</td></tr><tr><td>发送时间:</td><td>${time}</td></tr></table>";
    /**
     * 转派邮件提醒模板
     */
    private static final String OM_OPERATE_UPDATE = "<p style=\"font-size: 14px\">您好,收到来自${name}指派的新线索,备注:${remark}</p><p style=\"font-size: 14px\">新线索资料如下，请及时处理：</p><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"font-size: 14px\"><tr><td style=\"font-size: 14px\">姓名:</td><td style=\"font-size: 14px\">${username}</td></tr><tr><td style=\"font-size: 14px\">公司名称:</td><td style=\"font-size: 14px\">${company_name}</td></tr><tr><td style=\"font-size: 14px\">公司行业:</td><td style=\"font-size: 14px\">${company_type}</td></tr><tr><td style=\"font-size: 14px\">邮箱:</td><td style=\"font-size: 14px\">${email}</td></tr><tr><td style=\"font-size: 14px\">电话:</td><td style=\"font-size: 14px\">${phone}</td></tr><tr><td style=\"font-size: 14px\">归属地:</td><td style=\"font-size: 14px\">${loc}</td></tr><tr><td style=\"font-size: 14px\">来源:</td><td style=\"font-size: 14px\">${source}</td></tr><tr><td style=\"font-size: 14px\">内容:</td><td style=\"font-size: 14px\">${content}</td></tr><tr><td style=\"font-size: 14px\">发送时间:</td><td style=\"font-size: 14px\">${time}</td></tr></table><a style=\"  text-decoration: none;color:#2672ff;font-size: 14px\"href=\"${bestcem_url}/company/appointment/account\">您可登录系统商后台查看更多详情</a>";
    private static final String DATE_FORMAT_APP = "yyyy-MM-dd";

    public static String notifyOperateUpdate(String name, String remark, String username, String companyName, String companyType,
                                             String email, String phone, String content, String loc, String source, String url) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(NAME, name);
        paramMap.put(REMARK, remark);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_COMPANY_NAME, companyName);
        paramMap.put(PARAM_COMPANY_TYPE, companyType);
        paramMap.put(PARAM_EMAIL, StringUtils.isEmpty(email) ? "未填" : email);
        paramMap.put(PARAM_PHONE, phone);
        paramMap.put(PARAM_CONTENT, content);
        paramMap.put(PARAM_TIME, DateUtil.convertDteToString(new Date(), DATE_FORMAT_APP));
        paramMap.put(PARAM_PHONE_LOCATION, loc);
        paramMap.put(PARAM_SOURCE, source);
        paramMap.put(BESTCEM_URL, url);
        String text = String.format(USER_EMAIL_HTML, OM_OPERATE_UPDATE);
        return TextParseUtil.parseEl(text, paramMap);
    }

    public static String notifyApplicationEmail(String username, String companyName, String companyType,
                                                String email, String phone, String content, String loc, String source) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put(PARAM_USERNAME, username);
        paramMap.put(PARAM_COMPANY_NAME, companyName);
        paramMap.put(PARAM_COMPANY_TYPE, companyType);
        paramMap.put(PARAM_EMAIL, StringUtils.isEmpty(email) ? "未填" : email);
        paramMap.put(PARAM_PHONE, phone);
        paramMap.put(PARAM_CONTENT, content);
        paramMap.put(PARAM_TIME, DateUtil.convertDteToString(new Date(), DATE_FORMAT_APP));
        paramMap.put(PARAM_PHONE_LOCATION, loc);
        paramMap.put(PARAM_SOURCE, source);
        String text = String.format(USER_EMAIL_HTML, OM_NOTIFY_APPLICATION_EMAIL);
        return TextParseUtil.parseEl(text, paramMap);
    }

    //====== 订单管理相关 ======
    /**
     * 订单确认支付模板
     * 需注意：这里变量与之前python代码多加了’$‘
     */

    /**
     * 订单确认支付模板
     * 需注意：这里变量与之前python代码多加了’$‘
     */
    private static final String PACKAGE_SALE_CONFIRM_PAY_TEMPLE =
            "您好！<br>" +
                    "倍市得${org_name}租户购买${now_pack_name}版本已确认到账${real_price}元，版本待升级。<br>" +
                    "请管理员登录系统商后台修改套餐及到期日。<br>" +
                    "点击立即前往：<a class='blue' href=${url} target='_blank'>${url}</a>，查看订单详情。<br>" +
                    "<br>" +
                    "附订单信息如下：<br>" +
                    "租户代号：${org_code}<br>" +
                    "当前套餐：${old_pack_name}版本<br>" +
                    "购买套餐：${now_pack_name}版本<br>" +
                    "购买时长：${duration}年<br>" +
                    "订单金额：${price}元<br>" +
                    "支付方式：${pay_method}<br>" +
                    "租户电话：${org_mobile}<br>" +
                    "租户邮箱：${org_email}<br>" +
                    "备注：订单号${order_id}<br>" +
                    "<br>" +
                    "<br>";

    /**
     * 订单确认支付模板内容返回
     *
     * @param name
     * @param oldPackName
     * @param nowPackName
     * @param url
     * @param code
     * @param duration
     * @param price
     * @param payMethod
     * @param orderNo
     * @param phone
     * @param email
     * @return
     */
    public static String packageSaleConfirmPayEmail(String name, String oldPackName, String nowPackName, String url, String code, int duration, int price,int realPrice, String payMethod, String orderNo, String phone, String email) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put("org_name", name);
        paramMap.put("now_pack_name", nowPackName);
        paramMap.put("price", price);
        paramMap.put("real_price", realPrice);
        paramMap.put("url", url);
        paramMap.put("org_code", code);
        paramMap.put("old_pack_name", oldPackName);
        paramMap.put("duration", duration);
        paramMap.put("pay_method", payMethod);
        paramMap.put("org_mobile", phone);
        paramMap.put("org_email", email);
        paramMap.put("order_id", orderNo);
        return TextParseUtil.parseEl(PACKAGE_SALE_CONFIRM_PAY_TEMPLE, paramMap);
    }

    /**
     * 套餐升级给销售发送邮件模板
     */
    private static final String PACKAGE_PAY_TO_THE_PUBLIC_NOTIFY_SALE_EMAIL_TEMPLE =
            "您好！<br>" +
                    "倍市得${org_name}租户购买${now_pack_name}版本待确认，订单信息如下:<br>" +
                    "<br>" +
                    "租户代号: ${org_code}<br>" +
                    "当前套餐：${old_pack_name}版本<br>" +
                    "购买套餐：${now_pack_name}版本<br>" +
                    "购买时长：${duration}年<br>" +
                    "订单金额：${price}元<br>" +
                    "支付方式：${pay_method}<br>" +
                    "租户电话：${org_mobile}<br>" +
                    "租户邮箱：${org_email}<br>" +
                    "备注：订单号{order_id}<br>" +
                    "<br>" +
                    "<br>" +
                    "请确认款项到账，并登陆系统商后台修改套餐及到期日。<br>" +
                    "点击立即前往：<a class='blue' href=${org_url} target='_blank'>${org_url}</a>，查看订单详情。<br>";

    public static String packagePayToThePublicNotifySaleEmail(String name, String oldPackName, String nowPackName, String url, String code, int duration, int price, String payMethod, String orderNo, String phone, String email) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put("org_name", name);
        paramMap.put("now_pack_name", nowPackName);
        paramMap.put("price", price);
        paramMap.put("org_url", url);
        paramMap.put("org_code", code);
        paramMap.put("old_pack_name", oldPackName);
        paramMap.put("duration", duration);
        paramMap.put("pay_method", payMethod);
        paramMap.put("org_mobile", phone);
        paramMap.put("org_email", email);
        paramMap.put("order_id", orderNo);
        return TextParseUtil.parseEl(PACKAGE_PAY_TO_THE_PUBLIC_NOTIFY_SALE_EMAIL_TEMPLE, paramMap);
    }

    /**
     * 管理员点击确认升级邮件模板
     */
    private static final String PACKAGE_SALE_CONFIRM_UPGRADE_TEMPLE =
            "您好！<br>" +
                    "倍市得${org_name}租户购买${now_pack_name}版本已完成升级：<br>" +
                    "实付金额：${real_price}元<br>" +
                    "升级版本：${now_pack_name}<br>" +
                    "升级起始日期：${upgrade_start_dt}<br>" +
                    "升级到期日：${upgrade_end_dt}<br>" +
                    "点击立即前往：<a class='blue' href=${url} target='_blank'>${url}</a>，查看订单详情。<br>" +
                    "<br>" +
                    "附订单信息如下：<br>" +
                    "租户代号：${org_code}<br>" +
                    "当前套餐：${old_pack_name}版本<br>" +
                    "购买套餐：${now_pack_name}版本<br>" +
                    "购买时长：${duration}<br>" +
                    "订单金额：${price}元<br>" +
                    "支付方式：${pay_method}<br>" +
                    "租户电话：${org_mobile}<br>" +
                    "租户邮箱：${org_email}<br>" +
                    "备注：订单号${order_id}<br>" +
                    "<br>" +
                    "<br>";


    /**
     * 管理员点击确认升级邮件模板内容返回
     *
     * @param name
     * @param oldPackName
     * @param nowPackName
     * @param url
     * @param code
     * @param duration
     * @param price
     * @param payMethod
     * @param orderNo
     * @param phone
     * @param email
     * @param upgradeStartDt
     * @param upgradeEndDt
     * @return
     */
    public static String packageSaleConfirmUpgradeEmail(String name, String oldPackName, String nowPackName, String url, String code, String duration,
                                                        int price,int realPrice, String payMethod, String orderNo, String phone, String email, String upgradeStartDt, String upgradeEndDt) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put("org_name", name);
        paramMap.put("now_pack_name", nowPackName);
        paramMap.put("price", price);
        paramMap.put("real_price", realPrice);
        paramMap.put("upgrade_start_dt", upgradeStartDt);
        paramMap.put("upgrade_end_dt", upgradeEndDt);
        paramMap.put("url", url);
        paramMap.put("org_code", code);
        paramMap.put("old_pack_name", oldPackName);
        paramMap.put("duration", duration);
        paramMap.put("pay_method", payMethod);
        paramMap.put("org_mobile", phone);
        paramMap.put("org_email", email);
        paramMap.put("order_id", orderNo);
        return TextParseUtil.parseEl(PACKAGE_SALE_CONFIRM_UPGRADE_TEMPLE, paramMap);
    }

    /**
     * 财务点击订单未支付邮件模板
     */
    private static final String PACKAGE_SALE_CANCEL_PAY_TEMPLE =
            "您好！<br>" +
                "倍市得${org_name}租户购买${now_pack_name}版本支付未到账，版本无需升级。<br>"+
                "点击立即前往：<a class='blue' href=${url} target='_blank'>${url}</a>，查看订单详情。<br>"+
                "<br>"+
                "附订单信息如下：<br>"+
                "租户代号：${org_code}<br>"+
                "当前套餐：${old_pack_name}版本<br>"+
                "购买套餐：${now_pack_name}版本<br>"+
                "购买时长：${duration}年<br>"+
                "订单金额：${price}元<br>"+
                "支付方式：${pay_method}<br>"+
                "租户电话：${org_mobile}<br>"+
                "租户邮箱：${org_email}<br>"+
                "备注：订单号${order_id}<br>"+
            "<br>"+
            "<br>";

    public static String packageSaleCancelPayEmail(String name, String oldPackName, String nowPackName, String url, String code, int duration, int price, String payMethod, String orderNo, String phone, String email) {
        Map<String, Object> paramMap = new HashMap<>(16);
        paramMap.put("org_name", name);
        paramMap.put("old_pack_name", oldPackName);
        paramMap.put("now_pack_name", nowPackName);
        paramMap.put("url", url);
        paramMap.put("org_code", code);
        paramMap.put("duration", duration);
        paramMap.put("price", price);
        paramMap.put("pay_method", payMethod);
        paramMap.put("order_id", orderNo);
        paramMap.put("org_mobile", phone);
        paramMap.put("org_email", email);
        return TextParseUtil.parseEl(PACKAGE_SALE_CANCEL_PAY_TEMPLE, paramMap);
    }
}